package com.baox.agridata.synchronous.service.impl;


import com.baox.agridata.synchronous.service.AsyncLogOperationService;
import com.baox.agridata.synchronous.util.FileUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class AsyncLogOperationServiceImpl implements AsyncLogOperationService {


    @Async("newAsyncExecutor")
    @Override
    public void insertFactoryCodeRecord(List<String> factoryCodeList, String startTime, String endTime, String filePath) {
        FileUtil l_file = new FileUtil();
        l_file.recordData(factoryCodeList, startTime, endTime, filePath);
    }
}
